//
//  YDContactsManager.h
//  IngCard
//
//  Created by kf on 2017/5/17.
//  Copyright © 2017年 IngDan. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "YDContact.h"

#define CONTACT [YDContactsManager sharedInstance]

typedef enum : NSUInteger {
    YDContactSort_none = 0,
    YDContactSort_name,
    YDContactSort_company,
}YDContactSort   ;

@interface YDContactsManager : NSObject
@property(nonatomic, strong) NSMutableArray<YDContact *> *contacts;

@property(nonatomic, assign) YDContactSort sortType;
@property(nonatomic, strong) NSMutableArray<NSString *> *indexArray_sort;
@property(nonatomic, strong) NSMutableArray<NSMutableArray<YDContact *>*> *contacts_sort;


+ (instancetype)sharedInstance;

-(void) getListOnComplete:(void (^)(BOOL success, NSString* msg)) onComplete;

-(void) add:(NSArray<NSString *> *) uids
 OnComplete:(void (^)(BOOL success, NSString* msg)) onComplete;


-(void) del:(NSArray<NSString *> *) uids
 OnComplete:(void (^)(BOOL success, NSString* msg)) onComplete;


-(void) sort;
@end
